package com.jiyun.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiyun.model.xitong.Rizhi;
import com.jiyun.service.RizhiService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("Log")
@CrossOrigin
@Api("操作日志")
public class RizhiController {
    @Autowired
    RizhiService rizhiService;

    @RequestMapping("findAll")
    @ApiOperation("查询所有日志")
    public Page<Rizhi> findAll(Integer current, Integer size, @RequestBody Rizhi rizhi){
        return rizhiService.findAll(current,size,rizhi);
    }


}
